Module-level declarations
Types
Link copied to clipboard
struct crafting_station
Link copied to clipboard
struct crafting_station_dto
Link copied to clipboard
struct module_args
Link copied to clipboard
entity queued_recipe
Link copied to clipboard
struct queued_recipe_dto
Link copied to clipboard
entity recipe_created_item
Link copied to clipboard
struct recipe_dto
Link copied to clipboard
struct recipe_implicit_input_dto
Link copied to clipboard
struct recipe_implicit_output_dto
Link copied to clipboard
struct recipe_input_dto
Link copied to clipboard
struct recipe_output_dto
Link copied to clipboard
object recipes_config
Functions
Link copied to clipboard
Link copied to clipboard
function _aggregate_output_from_recipe(assets_to_reward: map<item, integer>, recipe_dto: recipe_dto, recipe_amount: integer)
Link copied to clipboard
function _check_ownership_and_queue(account_id: byte_array, auth_descriptor_id: byte_array, crafting_station: crafting_station): set<queued_recipe>
Link copied to clipboard
function _choose_input_given_customization(chosen_customizations: list<(tag: text, value: text)>, recipe_input_dto: recipe_input_dto): item?
Link copied to clipboard
function _claim_output_with_time(crafting_station: crafting_station, account_id: byte_array, auth_descriptor_id: byte_array, timestamp: integer)
Link copied to clipboard
function _claim_recipe_dtos_for_player(player: player, queued_recipe_dtos: list<queued_recipe_dto>, store_last_created_items: boolean)
Link copied to clipboard
function _claim_recipes_for_player(player: player, recipes_to_claim: list<queued_recipe>, store_last_created_items: boolean)
Link copied to clipboard
function _figure_output(recipe_dto: recipe_dto, batching_amount: integer, chosen_customizations: list<(tag: text, value: text)>): (item, integer)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@extend(check_original_removable) function check_original_movable(griddable_id: integer, original_id: byte_array, location: location): map<text, boolean>
Link copied to clipboard
function choose_customization(input: recipe_input_dto, chosen_customizations: list<(tag: text, value: text)>): (tag: text, value: text)?
Link copied to clipboard
@extend(on_placing) function on_placing(owner_id: byte_array, original_id: byte_array, griddable_id: integer, current_location: location?, new_location: location)
Link copied to clipboard
Link copied to clipboard
function validate_customization(input: recipe_input_dto, chosen_customizations: list<(tag: text, value: text)>): (tag: text, value: text)?
Queries
Link copied to clipboard
Link copied to clipboard
@mount("recipes.get_recently_crafted_item")
query get_recently_crafted_item(account_id: byte_array): list<recipe_output_dto>
Link copied to clipboard
Link copied to clipboard
@mount("recipes.get_stations")
query get_stations(account_id: byte_array): list<crafting_station_dto>
Operations
Link copied to clipboard
Link copied to clipboard
@mount("recipes.claim_output")
operation claim_output(crafting_station: crafting_station, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("recipes.craft_recipe")
operation craft_recipe(recipe_name: text, recipe_amount: integer, chosen_customizations: list<(tag: text, value: text)>, crafting_station: crafting_station, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@mount("recipes.register_crafting_station")
operation register_crafting_station(name: text, relative_locations: list<location>, public: boolean)
Link copied to clipboard
Link copied to clipboard
@mount("recipes.set_global_recipe_parameters")
operation set_global_recipe_parameters(enabled: boolean)
Link copied to clipboard
@mount("recipes.upsert_recipe")
operation upsert_recipe(recipe_name: text, crafting_time: integer, crafting_station: text, fee: integer, input: list<recipe_implicit_input_dto>, output: list<recipe_implicit_output_dto>)